package com.netistate.pojo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name="t_product")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Product {
	
	private int id;
	private String product;
	private String preVersion;
	private String postVersion;
	private String ip;
	private String mask;
	private String gateway;
	private String dns;
	//private String workContent;
	private String workNote;
	private int nodes;
	private String module;
	private String outDate;
	private String licenseTime;
	
	private String hardwareSource;
	private String productConfig;
	
	private Project project;
	
	
	@ManyToOne
	@JoinColumn(name="projectid")
	public Project getProject() {
		return project;
	}
	public void setProject(Project project) {
		this.project = project;
	}
	
	
	//get set
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getProduct() {
		return product;
	}
	public void setProduct(String product) {
		this.product = product;
	}
	public String getPreVersion() {
		return preVersion;
	}
	public void setPreVersion(String preVersion) {
		this.preVersion = preVersion;
	}
	public String getPostVersion() {
		return postVersion;
	}
	public void setPostVersion(String postVersion) {
		this.postVersion = postVersion;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getMask() {
		return mask;
	}
	public void setMask(String mask) {
		this.mask = mask;
	}
	public String getGateway() {
		return gateway;
	}
	public void setGateway(String gateway) {
		this.gateway = gateway;
	}
	public String getDns() {
		return dns;
	}
	public void setDns(String dns) {
		this.dns = dns;
	}
	/*public String getWorkContent() {
		return workContent;
	}
	public void setWorkContent(String workContent) {
		this.workContent = workContent;
	}*/
	public String getWorkNote() {
		return workNote;
	}
	public void setWorkNote(String workNote) {
		this.workNote = workNote;
	}
	
	public int getNodes() {
		return nodes;
	}
	public void setNodes(int nodes) {
		this.nodes = nodes;
	}
	public String getModule() {
		return module;
	}
	public void setModule(String module) {
		this.module = module;
	}
	public String getOutDate() {
		return outDate;
	}
	public void setOutDate(String outDate) {
		this.outDate = outDate;
	}
	public String getLicenseTime() {
		return licenseTime;
	}
	public void setLicenseTime(String licenseTime) {
		this.licenseTime = licenseTime;
	}
	public String getHardwareSource() {
		return hardwareSource;
	}
	public void setHardwareSource(String hardwareSource) {
		this.hardwareSource = hardwareSource;
	}
	public String getProductConfig() {
		return productConfig;
	}
	public void setProductConfig(String productConfig) {
		this.productConfig = productConfig;
	}
	
	
}
